package com.luck.controller;

import com.luck.dto.OrderingDTO;
import com.luck.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/stock")
public class InventoryController {
    @Autowired
    StockService stockService;
    @PostMapping
    public String freeze(@RequestBody OrderingDTO dto) {
        return stockService.freeze(dto);
    }
}
